package it.yuzuojian.com.service;

import it.yuzuojian.com.javaBean.Article;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ArticleService {
    List<Article> findAll(int page, int pageSize);
    List<Article> findAll();
    List<Article> searchArticle(int page, int pageSize, String typeName, String title, Boolean recommend);
    void deleteById(Integer id);
    void add(Article article);
    Integer findNextId();
    Article findById(Integer id);
    void update(Article article);
    Integer findCounts();
    List<Article> findRecommendNewArticle();
    List<Article> findByTypeName(int page,int pageSize,String typeName);
    List<Article> findByTagId(int page,int pageSize,Integer tagId) ;
    void addViewCount(Integer id);
    void addViewCount(Integer id,Integer viewCount);
    List<Article> search(int page,int pageSize,String query);
    /*Integer searchCounts(String query);*/
}
